import { V as i, O as o, C as _, n as f } from "./index-9e4bc268.js";
var v = Object.defineProperty
  , p = Object.getOwnPropertyDescriptor
  , m = (e, t, n, s) => {
    for (var r = s > 1 ? void 0 : s ? p(t, n) : t, a = e.length - 1, c; a >= 0; a--)
      (c = e[a]) && (r = (s ? c(t, n, r) : c(r)) || r);
    return s && r && v(t, n, r),
      r
  }
  ;
let l = class extends i {
  openMessage(e) {
    Reflect.has(o, e) && o[e]("一条简单的消息")
  }
  openCallbackMessage() {
    o.info("我是有关闭回调的消息", {
      onClose: () => {
        o.success("我是关闭后的回调")
      }
    })
  }
}
  ;
l = m([_], l);
var g = function () {
  var e = this
    , t = e.$createElement
    , n = e._self._c || t;
  return n("s-flex", {
    attrs: {
      gap: "1em"
    }
  }, [n("s-button", {
    attrs: {
      theme: "primary"
    },
    on: {
      click: function (s) {
        return e.openMessage("info")
      }
    }
  }, [e._v("默认主题")]), n("s-button", {
    attrs: {
      theme: "success"
    },
    on: {
      click: function (s) {
        return e.openMessage("success")
      }
    }
  }, [e._v("安全主题")]), n("s-button", {
    attrs: {
      theme: "warning"
    },
    on: {
      click: function (s) {
        return e.openMessage("warning")
      }
    }
  }, [e._v("警告主题")]), n("s-button", {
    attrs: {
      theme: "danger"
    },
    on: {
      click: function (s) {
        return e.openMessage("error")
      }
    }
  }, [e._v("危险主题")]), n("s-button", {
    attrs: {
      theme: "primary"
    },
    on: {
      click: e.openCallbackMessage
    }
  }, [e._v("有关闭回调的消息")])], 1)
}
  , h = [];
const u = {};
var M = f(l, g, h, !1, b, null, null, null);
function b(e) {
  for (let t in u)
    this[t] = u[t]
}
const O = function () {
  return M.exports
}();
export { O as default };
